<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <!--<meta http-equiv="Content-Type" content="multipart/form-data; charset=utf-8" />-->
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../../lib/html5shiv.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../lib/respond.min.js?rev=@@hash"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../static/h-ui/css/H-ui.min.css"/>
    <link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/css/H-ui.admin.css"/>
    <link rel="stylesheet" type="text/css" href="../../lib/Hui-iconfont/1.0.8/iconfont.css"/>
    <link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/skin/default/skin.css" id="skin"/>
    <link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/css/style.css"/>
    <link rel="stylesheet" type="text/css" href="../../ht-css/Project.css"/>
    <!--[if IE 6]>
    <script type="text/javascript" src="../../lib/DD_belatedPNG_0.0.8a-min.js?rev=@@hash"></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../ht-css/style-q.css"/>
    <title>运费管理</title>

    <style type="text/css">
        .importBut {
            display: inline-block;
            padding: .3em .5em;
            background-image: linear-gradient(#f5c153, #ea920d);
            border: 1px solid rgba(0,0,0,.2);
            border-radius: .3em;
            box-shadow: 0 1px white inset;
            text-align: center;
            text-shadow: 0 1px 1px black;
            color:white;
            font-weight: bold;
            width: 78px;
        }
        .importBut:active{
            box-shadow: .05em .1em .2em rgba(0,0,0,.6) inset;
            border-color: rgba(0,0,0,.3);
            background: #bbb;
        }

        .fileType{
            background:#fafdfe;
            height:28px;
            width:180px;
            line-height:28px;
            border:1px solid #9bc0dd;
            -moz-border-radius:2px;
            -webkit-border-radius:2px;
            border-radius:2px;
        }
    </style>

</head>
<body >
<div id="main-content">
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页  <span class="c-gray en">&gt;</span> 运费管理<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<article class="page-container">
    <form class="ml-20 mr-20">
        <div>
            <input type="button" onclick="insertTemplate('新增运费模板','freightAmount.html')" class="btn btn-secondary radius size-S  140" value="新增运费模板">
            <span id="kuaidi"></span>
            <span id="kuaiyun"></span>
            <span id="zhuanche"></span>
        </div>
        <div id="coupon-add"></div>

        <div class="dataTables_wrapper goods_fanye clearfix mt-10">
            <div class="f-r pageturning M-box3"></div>
        </div>

    </form>

    <div id="car-update" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
        <div class="modal-dialog">
            <div class="modal-content radius" style="height:600px;width:800px;left:-35%;">
                <div class="modal-header"  >
                    <h3 class="modal-title"><b class="addressTitle">必须选择一个启用的模板</b></h3>
                    <a class="close" style="margin-right: 5px;width: 22px;height: 22px;margin-top: 5px" data-dismiss="modal" aria-hidden="true" >×</a>
                </div>
                <input type="hidden" class="ship_add_id">
                <div class="pop_win pop_receiver"  >
                    <div class="clearfix pt-20 pb-20" style="width:800px;">
                        <div class="class-wp27 f-l" style="width:800px;">
                            <label class="form-label f-l text-r w-75 lh-26"><em>*</em>模板名称：</label>
                            <select id="tempNameAll" class="select radius ml-10 f-l" style="width:20%;height:30px;" size="1">

                            </select>
                        </div>
                    </div>
                </div>
                <div class="text-c pt-30"><a onclick="judgment()" class="btn btn-secondary radius size-L loading_img">确定</a><a onclick="close_modelCar()" class="btn radius size-L ml-10">取消</a></div> </div>
        </div>
    </div>


    <form id="form-search1" enctype="multipart/form-data">
        <div id="importInfo" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
            <div class="modal-dialog" style="top:50%;margin-top:-225px">
                <div class="modal-content radius" style="height:300px;width:600px;text-align: center">
                    <h2>文件导入</h2><div>(发货仓:<span  name="warehouseName" id="warehouseName"></span>,模版名称:<span name="templateName" id="templateName"></span>)</div><span style="color: red">温馨提示:导入将覆盖之前的数据</span>
                    <div style="margin-left: -48px;margin-bottom: 6px;margin-top: 49px;">
                        文件类型:
                        <select name="fileType" class="fileType" id="fileType">
                            <option value="10" selected="selected">快递</option>
                            <option value="20">快运</option>
                            <option value="30">专车包车</option>
                        </select><br>
                    </div>
                    <input type="file" name="file" id="file">

                    <input type="hidden" name="templateId" id="templateId">
                    <input type="hidden" id="importStatus">
                    <button type="button" class="importBut" onclick="importFile()">导入</button>
                    <button type="button" class="importBut" onclick="closeImport()">取消</button><br>
                    <img src="../../img/loadding.gif" style="display: none ;margin-left: 186px;margin-top: 14px;" id="loaddingImg">
                </div>
            </div>
        </div>
    </form>

</article>
</div>



<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/layer/2.4/layer.js?rev=@@hash"></script>
<script type="text/javascript" src="../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script> <!--/_footer 作为公共模版分离出去-->
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>
<!--引入分页-->
<link rel="stylesheet" href="../../lib/pagination/pagination.css">
<script src="../../lib/pagination/jquery.pagination.js?rev=@@hash"></script>
<!--表单验证-->
<script type="text/javascript" src="../../lib/jquery.validation/1.14.0/jquery.validate.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/jquery.validation/1.14.0/validate-methods.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/jquery.validation/1.14.0/messages_zh.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/datatables/1.10.0/jquery.dataTables.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/laypage/1.2/laypage.js?rev=@@hash"></script>
<script src="../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../ht-js/verifyToken.js?rev=@@hash"></script>
<script src="../../ht-js/Project.js?rev=@@hash"></script>
<!--权限控制
<script type="text/javascript" src="../../ht-js/power.js?rev=@@hash"></script>-->
<script src="../../ht-js/coupon/coupon-topic.js?rev=@@hash"></script>

<script src="../../ht-js/freight/freightIndex.js?rev=@@hash"></script>

<script>
    $(function () {
        selectAllRange();
        $("#kuaidi").html('<a class="btn btn-secondary radius size-S  140" href="https://'+ window.location.host +'/api/admin/alogistics/downloadTemplate?style=1">快递模板下载</a>')
        $("#kuaiyun").html('<a class="btn btn-secondary radius size-S  140" href="https://'+ window.location.host +'/api/admin/alogistics/downloadTemplate?style=2">快运模板下载</a>')
        $("#zhuanche").html('<a class="btn btn-secondary radius size-S  140" href="https://'+ window.location.host +'/api/admin/alogistics/downloadTemplate?style=3">专车包车模板下载</a>')

    })


    function close_modelCar(){
        $("#car-update").modal("hide");
    }


</script>
</body>
</html>